import request from '@/utils/request'

// 查询task列表
export function listTask(query) {
  return request({
    url: '/activiti/approval/list',
    method: 'get',
    params: query
  })
}

// 查询表单
export function formDataShow(taskId) {
  return request({
    url: '/activiti/approval/formDataShow/'+taskId,
    method: 'get',
  })
}

// 查询采购退货单
export function buyBackOrderShow(taskId) {
  return request({
    url: '/activiti/approval/buyBackOrderShow/'+taskId,
    method: 'get',
  })
}
//查询销售申请单
export function getSaleReqByCode(code) {
  return request({
    url: '/xiaoshou/saleRequest/getReqByCode/'+code,
    method: 'get',
  })
}
// 查询财务应收单
export function reciveReqShow(taskId) {
  return request({
    url: '/activiti/approval/reciveReqShow/'+taskId,
    method: 'get',
  })
}

// 查询财务收款单
export function reciveOrderShow(taskId) {
  return request({
    url: '/activiti/approval/reciveOrderShow/'+taskId,
    method: 'get',
  })
}


// 审核
export function handleApproval(data) {
  return request({
    url: '/activiti/approval/handel',
    method: 'post',
    data:data
  })
}




